home *** CD-ROM | disk | FTP | other *** search
- Path: ornews.intel.com!news
- From: thurman_b_miller@ccm2.hf.intel.com (Thurman Miller)
- Newsgroups: comp.lang.c++
- Subject: Re: Newbie question ??
- Date: Wed, 17 Jan 1996 00:09:08 GMT
- Organization: Intel Corporation
- Message-ID: <4dhepa$759@ornews.intel.com>
- References: <4davoi$1vg@peach.america.net>
- NNTP-Posting-Host: thurman-pc.ssd.intel.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- dread@america.net (dread) wrote:
-
- >I get the following error when I try to rebuild a very simple project
-
- >LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol
- >"_WinMain@16"
-
-
- >here is the code
-
- >#include <iostream.h>
- >main(){
- >cout << "This is a test";
- >}
-
- >Using VC++ 2 and win95. Appreciate any help
-
- >Later
- >d
-
- Contrary to popular belief, this works just fine in VC++ in a windows
- environment. What you mistakenly did was not to make your project a
- "console application".
-
- When you create a new project, the default is "MFC". Select "Console
- application" instead and it will work just fine.
-
- Thurman
-
-
-
-
-